gtk/gesturestylus: Convert motion history from surface coordinates
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 24 Dec 2020 18:55:39 +0000 (19:55 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 24 Dec 2020 18:59:51 +0000 (19:59 +0100)
commitcf20cfd31e31fb0d5888119ef60e68ddf7582585
tree8c2d5e98099c326209275e6c08fa437d8e82951e
parent7e579bb59a650e61f21e9bf13fe3ded3f6b571dc
gtk/gesturestylus: Convert motion history from surface coordinates

Motion history coordinates are based on GdkSurface coordinates. Transform
the coordinates from the GtkNative they are received on, accounting for the
possible transforms (e.g. due to window borders and shadows).

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3491
gtk/gtkgesturestylus.c